package com.xsq.netty.utils;

import com.google.gson.JsonObject;

public class NettyMsgUtil {

    public static JsonObject getMsg(String deviceAddress, int type, String data) {
        JsonObject jsonObject = new JsonObject();
        jsonObject.addProperty("deviceMac", deviceAddress);
        jsonObject.addProperty("type", type);
        jsonObject.addProperty("data", data);
        return jsonObject;
    }

}
